package com.pig.provide.http.service;

import com.pig.rpc.client.IHello2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.concurrent.ThreadLocalRandom;

@Service
@Slf4j
public class Hello2 implements IHello2 {
    @Override
    public String hello(String name) {
        log.info("222222222222222222");
        return "hello " + name + ",I am " + this.getClass().getName() + ".hello()" + ThreadLocalRandom.current().nextDouble();
    }
}
